package com.jd.finance.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jd.finance.core.pojo.entity.BankCard;
import com.jd.finance.result.BaseResult;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 银行卡表 服务类
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-17
 */
public interface BankCardService extends IService<BankCard> {

    /**
     * 提交银行卡信息
     *
     * @param uid 用户id
     * @param bid 银行id
     * @param cardNumber 银行卡号
     * @return
     */
    BaseResult submitCardInfo(@Param("uid") Integer uid, @Param("bid") Integer bid, @Param("cardNumber") String cardNumber);

    /**
     * 根据uid查询银行卡信息
     * @param uid
     * @return
     */
    BaseResult getCardInfo(@Param("uid") Integer uid);

}
